﻿using System;

class CirclePerimeterAndArea
{
    static void Main()
    {
        Console.WriteLine("A program that calculates the perimeter and the area of a circle.\n\r");
        Console.WriteLine("Enter the radius of the circle:\r\n");

        string consoleInput = Console.ReadLine();
        double radius = double.Parse(consoleInput);
        double perimeter = 2 * Math.PI * radius;
        double area = Math.PI * radius * radius;

        Console.WriteLine("\r\nThe perimeter of the circle is {0:F2}.\r\n", perimeter);
        Console.WriteLine("The area of the circle is {0:F2}.\r\n", area);
    }
}
